# Group Anarchy Enforcer

Telegram group chats are authoritarian by default; each group has a set of
members (so-called "admins") that enjoys unjust power over other members and the
group in general. This bot enforces group anarchy by making sure (up to the
technical limitation) all members in a group are admins and having the full
permissions applicable.

**Sample instance:** [@GroupAnarchy_bot](https://t.me/GroupAnarchy_bot)

*Please make you own instance instead of using the sample one.*

### Deploying to Heroku

1. Create a new bot on Telegram and a new app on Heroku
1. Clone this repo and add your Heroku app git remote
1. Set `BOT_TOKEN` config var to your Telegram bot token
1. Set `USER_NAME` config var to your Telegram bot username
1. Set `APP_NAME` config var to your Heroku app name
1. Push the code
1. Set a webhook by issuing `https://APP_NAME.herokuapp.com.com/set_hook.php`

Make sure to enable the bot to join groups and add the following command:

```txt
enforce - Enforce you or someone is an admin in the group
```

## License

> Copyright (C) 2020 Karam Assany. Email: <karam.assany@tuta.io>

Licensed under the [MIT (Expat)](LICENSE) license.
